<%-- 
    Document   : home
    Created on : Mar 20, 2012, 1:58:42 PM
    Author     : berto
--%>


<%@page import="it.unitn.science.matr155863_148346_145963.bccastestore.items.User"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Left column</title>
    </head>
    <body>
        <div id="navigation">
            <a href="<%=response.encodeURL(request.getContextPath()+"/contents/public/home.jsp")%>" title="Home "><h1>Home</h1></a>
            <%
              User user= (User)session.getAttribute("user");
              if(user!=null){
                  %>
                  <jsp:include page="../user/userMenu.jsp" flush="true" />
                  <%
                  if(user.getStatus()==2){
                       %>
                        <jsp:include page="../admin/adminMenu.jsp" flush="true" />
                       <%
                  }
              }
            %>
            <jsp:include page="./publicMenu.jsp" flush="true" />
    </div>
    </body>
</html>
